<?php

namespace app\api\model\activity;

use app\api\model\UploadFile;
use app\common\model\activity\EndlessReward as EndlessRewardModel;
use think\model\relation\HasOne;

class EndlessReward extends EndlessRewardModel
{
    public function image(): HasOne
    {
        return $this->hasOne(UploadFile::class, 'file_id', 'cover_id');
    }
}